<?php
$this->headTitle('List Product Category');
?>
<?php echo $this->partial('admin/header/wellcome.phtml', array('user' => $user));?>
<ul class="nav nav-pills">
    <li><a href="<?php
        echo $this->url('product-admin/doaction', array(
            'controller' => 'product-admin-controller',
            'action' => 'add-category'));
        ?>"><h5>Thêm danh mục</h5></a>
    </li>
</ul>

<table class="table">
    <thead>
        <tr>
            <th>ID</th>
            <th>Tên danh mục</th>
            <th>Hình ảnh</th>
            <th>Thao tác</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($aryCategory as $key => $category) { ?>
            <tr>
                <td>
                    <?php echo $category['category_id']; ?>
                </td>
                <td><?php echo $category['category_name']; ?></td>
                <td><img src="/upload/images/thumb/<?php echo $category['category_image']; ?>"></td>
                <td>
                    <a href="<?php echo $this->url('product-admin/doaction', array('controller' => 'product-admin-controller', 'action' => 'edit-category', 'param' => $category['category_id'])); ?>">Edit</a>
                    <a href="<?php echo $this->url('product-admin/doaction', array('controller' => 'product-admin-controller', 'action' => 'delete-category', 'param' => $category['category_id'])); ?>">Delete</a>
                </td>
            </tr>
        <?php } ?>
    </tbody>
</table>